<%--
  Created by IntelliJ IDEA.
  User: fan
  Date: 2022/9/7
  Time: 13:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@taglib prefix="ftm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>工程列表</title>
</head>
<body>
    <table align="center" width="80%" border="1px" bgcolor="#fff8dc">
        <tr>
            <th>项目编号</th>
            <th>项目名称</th>
            <th>项目开始时间</th>
            <th>项目结束时间</th>
            <th>开发商编号</th>
            <th>承建商编号</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${list}" var="project">
            <tr>
                <td>${project.pid}</td>
                <td>${project.pname}</td>
                <td><ftm:formatDate pattern="yyyy-MM-dd" value="${project.starttime}"></ftm:formatDate> </td>
                <td><ftm:formatDate pattern="yyyy-MM-dd" value="${project.endtime}"></ftm:formatDate> </td>
                <td>${project.did}</td>
                <td>${project.cid}</td>
                <td><a href="/project/findProjectByPid?pid=${project.pid}">修改</a>
                    &nbsp;&nbsp;
                    <a href="/project/deleteProject?pid=${project.pid}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>
